package com.windhc.taotao;

import org.noear.solon.Solon;
import org.noear.solon.annotation.SolonMain;
import org.noear.solon.scheduling.annotation.EnableScheduling;
import org.noear.solon.web.cors.CrossFilter;

/**
 * @author windhc
 */
@EnableScheduling
@SolonMain
public class Application {

    public static void main(String[] args) {
        Solon.start(Application.class, args, app -> {
            //跨域，全局处理（用过滤器模式），加-1 优先级更高
            app.filter(-1, new CrossFilter().allowedOrigins("*"));
        });
    }
}
